﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace skald_db
{
    public partial class inputbox : Form
    {
        public inputbox()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
        public string return_db
        {
            get;
            private set;
        }
        public int return_width
        {
            get;
            private set;
        }
        public int return_length
        {
            get;
            private set;
        }
        private void button1_Click(object sender, EventArgs e)
        {
            this.return_db  =  this.textBox1.Text;
            this.return_length = (int)this.length.Value;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
